var Vue = require('vue');
var Main = require('./com.yy.demo/index.vue'); 
var VueRouter = require('vue-router');
var Router = require('router');

//默认样式
var Styles = require('./scss/main.scss');

Vue.use(VueRouter);

//注册路由
var router = new VueRouter({
    history: false,
    saveScrollPosition: true
});


Router(router, Main);

//启动 APP
var App = Vue.extend({});
router.start(App, '#app');

window.router = router;